<template>
    <div class="block">
       <el-timeline :reverse="reverse">
            <el-timeline-item
            v-for="(activity, index) in activities"
            :key="index"
            :timestamp="activity.remarks">
            {{activity.operateTime}}
            </el-timeline-item>
        </el-timeline>
        </div>
</template>
<script>
export default {
  data () {
    return {
      reverse: true,
      activities: [],
      searchMap: {}
    }
  },
  methods: {
    async getfindAll () {
      // console.log(this.$route.query.orderId)
      this.searchMap.orderId = this.$route.query.orderId
      console.log(this.searchMap.orderId)
      const { data: res } = await this.$http.post('/orders/order/log/findAllList', this.searchMap)
      this.activities = res.data
    }
  },
  // 钩子函数
  async created () {
    this.getfindAll()
  }
}
</script>
<style>
</style>
